<template>
    <div>
        <van-nav-bar title="首页" fixed/>
        
        <van-grid :column-num="4">
            <van-grid-item v-for="item in navigationData" :key="value" :icon="item.image_src" :text="item.name" />
        </van-grid>
        
       
    </div>
</template>

<script setup>
import { ref } from 'vue'
import { navigationApi } from '@/api/api'
let navigationData = ref([])
navigationApi().then(res => {
    navigationData.value = res.data.message
})

</script>

<style lang="scss" scoped></style>